package composite.collegeDisplay.component;

import composite.collegeDisplay.component.base.OrganizationComponent;

import java.util.ArrayList;

public class Department extends OrganizationComponent {

    // department为叶子节点，无集合
//    private ArrayList<OrganizationComponent> organizationComponents;

    public Department(String name, String desc) {
        super(name, desc);
    }


    // Department 为 叶子节点，不用重写 add, remove
//    @Override
//    public void add(OrganizationComponent organizationComponent) {
//        organizationComponents.add(organizationComponent);
//    }
//
//    @Override
//    public void remove(OrganizationComponent organizationComponent) {
//        organizationComponents.remove(organizationComponent);
//    }

    @Override
    public void print() {
        System.out.println(getName());
    }
}
